Skip to content

Conversation

abeglova
Copy link
Contributor

@abeglova abeglova commented Oct 8, 2025

What are the relevant tickets?

https://github.com/mitodl/hq/issues/8877

Description (What does it do?)

This pr fixes a bug that causes the pdf to markdown job for canvas problem files to be run unnecessarily when the files have not changed

It also prevents tika from being run for files whose content is set by the pdf to markdown job.

How can this be tested?

From the shell run

from learning_resources.tasks import sync_canvas_courses
sync_canvas_courses(['14566'], False)

you might see some messages from LiteLLM:
LiteLLM completion() model= gpt-4o; provider = openai

Run

sync_canvas_courses(['14566'], False)

again. You should not see more messages from LiteLLM

@abeglova abeglova changed the title commit fix canvas contentfile import Oct 10, 2025
@abeglova abeglova changed the title fix canvas contentfile import fix canvas problem file import Oct 10, 2025
@abeglova abeglova marked this pull request as ready for review October 10, 2025 19:34
@mbertrand mbertrand self-assigned this Oct 15, 2025
Copy link
Member

@mbertrand mbertrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@abeglova abeglova force-pushed the ab/problem-file-checksum branch from f5bbaa6 to ca6ad91 Compare October 15, 2025 15:40
@abeglova abeglova merged commit e9b7005 into main Oct 15, 2025
13 checks passed
@abeglova abeglova deleted the ab/problem-file-checksum branch October 15, 2025 15:54
@odlbot odlbot mentioned this pull request Oct 16, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants